package com.aac.rabbitrfc.pojo;

import lombok.Data;
import org.hibernate.annotations.Type;
import org.w3c.dom.Document;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "DAT_DOCUMENT")
public class DatDocument {

    @Id
    @Column(name = "DOCUMENT_ID", unique = true, nullable = false, length = 100)
    private String datDocumentId;

    @Type(type = "com.aac.rabbitrfc.type.OracleXmlType")
    @Column(name = "DOCUMENT_DATA", columnDefinition = "XMLTYPE")
    private Document document;

}
